package main;

import org.axon.jmsexample.service.OrderService;
import org.axon.jmsexample.util.Method;
import org.axon.jmsexample.util.SocialType;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"appContext.xml");
		OrderService orderService = (OrderService) ctx.getBean("orderService");

		orderService.sendOrder(SocialType.FACEBOOK, Method.FRIEND);
	}
}
